<?php
/**
 * Description
 * 
 * PHP version 7
 * 
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-25 12:43:25
 * @lastTime 2020-05-01 23:07:06
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Test\Unit;

use Design\Structural\Proxy\BankAccountProxy;

class ProxyTest extends \Test\BaseTest
{


    public function testProxy()
    {
        $account = new BankAccountProxy();
        $account->deposit(30);
        $this->assertSame(30, $account->getBalance());

        $account->deposit(300);
        $this->assertSame(30, $account->getBalance());

    }//end testProxy()


}//end class
